download file from gere
In [2]:
import netCDF4
from matplotlib import pyplot as plt
%matplotlib inline
In [3]:
my_filename = '/data/radar/pvc/wsacr/pvcwsacrhsrhiM1.b1.20121105.201200.nc'
In [4]:
my_dataset = netCDF4.Dataset(my_filename)
In [6]:
print(my_dataset.variables.keys())
In [8]:
print(my_dataset.variables['elevation'].ncattrs())
In [11]:
print(my_dataset.variables['elevation'].standard_name)
In [12]:
print(my_dataset.variables['elevation'][:])
In [13]:
print(my_dataset.variables['elevation'][:].shape)
In [25]:
my_figure = plt.figure(figsize=[10,5])
plt.plot(my_dataset.variables['time'][10:110], my_dataset.variables['elevation'][10:110])
plt.xlabel(my_dataset.variables['time'].standard_name)
Out[25]:
In [23]:
my_figure = plt.figure(figsize=[10,5])
plt.pcolormesh(my_dataset.variables['reflectivity'][:].transpose())
plt.xlabel(my_dataset.variables['time'].standard_name)
Out[23]:
In [ ]: